package com.ruoyi.group.mapper;

import com.ruoyi.group.domain.Orderdetail;
import com.ruoyi.group.domain.RpRepairOrder;
import com.ruoyi.group.domain.dto.RepairListDto;
import com.ruoyi.group.domain.dto.RepairOrderDto;
import com.ruoyi.group.domain.dto.RepairOrderQualitiedDto;
import com.ruoyi.group.domain.dto.daomin.RepairOrderDtoMin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 【用户添加 查看 工单】Mapper接口
 * 
 * @author ruoyi
 * @date 2022-03-07
 */
@Mapper
public interface RepairOrderMapper {

   int OrderJoin(RpRepairOrder repairOrder);
   //动态查询用户的数据
    List<RepairOrderDto> findOrder(RepairOrderDtoMin repairOrderDtoMin);
    //订单详情表
    Orderdetail findSerialNumber(String serialnumber);
    //逻辑删除
    int delectOrder(String orderOn);
    //工单转接详情，通过订单编号查找
    RpRepairOrder findByOrderNo(String orderNo);
    //同意转接，修改transfer_status =2
    int updateTansfer(String orderNo);
     //拒绝转接，修改transfer_status =3
    int updateRefuse(String orderNo);
    //查询质检页面需要质检与否的工单列表
    List<RepairOrderQualitiedDto> findQualitiedOrder(RpRepairOrder rpRepairOrder);

    RepairOrderDto findRepairById(int id);


    int changeStatus(int repairId);

    List<RepairListDto> findOrderList(RpRepairOrder rpRepairOrder);
}

